home *** CD-ROM | disk | FTP | other *** search
- Path: dispatch.news.demon.net!demon!pcf.spectratek.co.uk
- From: Dean Darlison <dean_darlison@spectratek.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Check if a file exists?
- Date: Mon, 15 Apr 1996 07:49:10 -0700
- Organization: Spectra-Tek UK Ltd
- Message-ID: <317261E6.31D0@spectratek.co.uk>
- References: <4kp7pg$upe@news-s01.ny.us.ibm.net>
- NNTP-Posting-Host: pcf.spectratek.co.uk
- X-NNTP-Posting-Host: pcf.spectratek.co.uk
- X-Mailer: Mozilla 2.0 (Win16; I)
- MIME-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
-
- bfilone@ibm.net wrote:
- >
- > Is it possible in C to check if a file exists other than checking for a succesful
- > fopen? ON a unix machine, I just want to know if a file is there or not, do not
- > to read or write anything to it. similar to the -f test in unix? I was hoping for
- > something less costly than opening and closing if exists because I am checking
- > for the existance of many files during the run of a process
- > Did not see any postings that seemed to refer to this.
- > Thanks in advance.
- > Bruce
- >
- > Bruce Filone
- > J. W. Pepper & Son
- > bfilone@ibm.net
-
- try:
-
- man access
-
- Cheers,
- Dean.
-
- --
- Dean.A.Darlison
- Spectra-Tek UK Ltd
- email: dean_darlison@spectratek.co.uk
- Tel: 01653-695551
-